Optimize single-replace edit path#39
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #39 +/- ##
==========================================
- Coverage 75.25% 75.10% -0.16%
==========================================
Files 67 67
Lines 1964 1976 +12
==========================================
+ Hits 1478 1484 +6
- Misses 486 492 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🧰 Additional context used📓 Path-based instructions (1)src/**/*.rs📄 CodeRabbit inference engine (src/AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-02-07T22:53:26.067ZApplied to files:
📚 Learning: 2026-02-07T22:53:26.067ZApplied to files:
🧬 Code graph analysis (1)src/llm-coding-tools-core/src/tools/edit.rs (2)
🔇 Additional comments (5)
WalkthroughThe 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Rationale: single replace only needs to detect whether matches are 0, 1, or multiple. Expected changes: single-replace exits after the second match instead of counting all matches, ambiguous-match errors report "multiple times", and replace_all behavior stays the same.
e4cac87 to
0aed2a6
Compare
Optimize single-replace edit path
Rationale
Expected changes
replace_allbehavior and exact replacement-count reporting remain unchanged.